package cn.tsoft.taobao.logic;

import java.util.Map;

public class Task {
	
	private int taskID;// 任务编号
	
	private Map<String, Object> taskParam;// 任务参数
	
	public static final int TASK_GET_USER_INFO = 0;// 获取用户详细信息
	public static final int TASK_GET_USER_HOMETIMEINLINE = 1;// 获取用户淘宝首页
	public static final int TASK_GET_USER_FRIEND = 2;// 获取用户所有好友
	public static final int TASK_USER_LOGIN = 3;// 用户登录
	
	public static final int ONSALE_PRODUCT_ITEM = 4;// 获取会话用户所有在卖的商品
	
	public static final int TRADE_ORDER_ITEM =5; //交易订单信息
	/**
	 * 加载商品的详细的信息
	 */
	public static final int TASK_GET_PRODUCT_INFO =6; 
	
	
	
	public Task(int id, Map<String, Object> param) {
		this.taskID = id;
		this.taskParam = param;
	}

	public int getTaskID() {
		return taskID;
	}

	public void setTaskID(int taskID) {
		this.taskID = taskID;
	}

	public Map<String, Object> getTaskParam() {
		return taskParam;
	}

	public void setTaskParam(Map<String, Object> taskParam) {
		this.taskParam = taskParam;
	}
	
}
